remote-add: Default to explicit sign-verify backends
authorColin Walters <walters@verbum.org>
Thu, 28 May 2020 00:41:34 +0000 (00:41 +0000)
committerColin Walters <walters@verbum.org>
Thu, 28 May 2020 00:41:34 +0000 (00:41 +0000)
commit68ebf743cd826586ceccb40d8d1bf7d4c35f3e5f
tree9c364187f7cc2863a540019c78c6402cc23c6523
parent854099802f3367b6fa8b405fe50c5988813e8b4d
remote-add: Default to explicit sign-verify backends

In https://github.com/ostreedev/ostree/pull/2092/commits/588f42e8c64183dfa1fbaa08cc92c46b691b23c4
we added a way to add keys for sign types when doing
a `remote add`, and in https://github.com/ostreedev/ostree/pull/2105
we extended `sign-verify` to support *limiting* to an explicit
set.

This PR changes the *default* for `remote add` to combine
the two - when providing an explicit `--sign-verify=type`,
we now limit the accepted types to only those.
src/ostree/ot-remote-builtin-add.c